#ifndef __ROCK_H__
#define __ROCK_H__

#include "cocos2d.h"

class Rock : public cocos2d::Node
{
public:
	static Rock* create(cocos2d::Layer* layer, float posX);

	bool init(cocos2d::Layer* layer, float posX);

	int get_map_index() const
	{
		return mapIndex;
	}
	void set_map_index(const int &_mapIndex)
	{
		mapIndex = _mapIndex;
	}

private:
	int mapIndex;
	cocos2d::Sprite* sprite;
};
#endif // __ROCK_H__